package xml;

public class WebPage {
	
	public final static int PAGEID = 0;
	public final static int MENUNAME = 1;
	public final static int PAGENAME = 2;
	private int pageId;
	private String menuName;
	private String pageName;
	
	public WebPage(){
		
	}
	
	public void setPageValues(int valueName, String value){
		switch(valueName){
		  case MENUNAME: menuName = value; 
		  case PAGENAME: pageName = value; 	  
			
		}
	}
	
	public void setPageValues(int valueName, int value){
		switch(valueName){
		  case PAGEID: pageId =  value;
		}
	}
	
	public String getPageValues(int valueName){
		String value = null;
		switch(valueName){
		  case PAGEID:   value = Integer.toString(pageId);
		  case MENUNAME: value = menuName;
		  case PAGENAME: value = pageName; 
		}
		return value;
	}
	
}
